Implemented simple authentication