first working authentication
Working authentication without dummy code