Refactored error display methods, updated password and email validation