creating a simple authentication