finished basic authenication