added the javascript call to php for login