Start of authentication framework