Login page working with error messages