Rescue only NoMethodError in valid_credentials?