Login Functionality and Ajax code added

Login Functionality and Ajax code added