Fixed logic for login
Something, i guess