User registration and login now mostly works.