added the basis functions for the authentication