first version of authentication