login is not working correctly