Added a if check for auth

Make it pass the test instead of giving an error. Not a bug. Just be
cool~