Added front end authenticate method