Get registration working, add logout.