ajax login is now functional