ajax login now works