finish authentication
final working product