[New] Added authentication functionality