AJAX without page refresh working for user admin status