Only allows users to log in if their account is enabled
changed if statment to include error message if user is not enabled