Namespace Code and User model

Originally merged from a separate branch, but turned into a single commit
for log clarity.
Very basic error checking and login formatting

Redirect the user back to the code submission if they enter an unknown
code. Also, add a bit more HTML formatting to the login.