rough fix of login