Switched type being compared with == to string.equals in the login
method