Error messages are removed if the input field contains data
Red highlight is removed when the input field contains data
Added password validation and fixed validation logic

If the passwords do not match, the fields will be highlighted red and a message will alert the user.