fixing a login bug
cleaning up login code