Adding function to allow controllers to check for existing authentications.