Restricted authenticate_user to html format only