login in the correct way