finishing authentication