updated registration and user controllers