Added is_active method to User class.