Fix error when checking username/password