Corrected missing password error message; added tests for error messages; refactored Flash tag