Updated the authentication stuff