fixed error outputs for login