Added missing import of get_object_or_404 for user registration.
Ensured that only active users are displayed on the home page.