Fully implemented simple authentication