cleaned up ajax login a bit