Auth bits

Register function works.
Login does not, half finished.
Added error output to master layout.