added authentication
finished authentication