Finished basic registration / login / logout stuff.