Modified: Login allowed only for users with active status