Move login and signup php to the server.