added methods to the new and create actions in the user controller.