Added ajax_login for metadata views