setting up ajax login