make register endpoint create new user if necessary