All the methods at the bottom are not mine, @hebaabdelfattah. They were there when I pulled the master. The ones after 
def entity_params
      params.require(:entity).permit(:name, :e_mail, :password, :password_confirmation, :type, :location)
    end