started logging in and singing up
modularized server code