Working login and signup pages (no facebook)

Implemented the actual functionality of the login and signup page so that it works. No facebook signin yet: I figured I should open the regular auth stuff in a PR first.