User registration form writes to DB