fixed nil error on sign in for is_active