Added login/signup functions. Modified some server output things.