added ajax call for login. still working on mysql