How can I place the error messages to the right of the input field?