Fixed Log in Issues

Fixed Login Issues when needing to click the login button 2 times before
successfully logging in