updated _requireModels() function to handle ajax
add logic for inactive users