small fix and login complete