Revision 19

Separated registration and added login. Cannot double-register. Other
fixes/modifications.