cleaned up login a little