merging sean's authentication.