Added persisting methods. Added controller method for saving user.