Added a newer way of authenticating