fixed login

need to fix tests