Added AuthHive and funcitions to check auth