Errors with validations at login fixed