Initial implementation of authentication.