Throws error for a password/username not entered