change user object to accept hash instead of object.
only load pry in development.