finish authenfication