removed unused code
fixed bug with login every time starting app