Updated to prevent deleted users from accessing the website.