Initial logic for authentication has been added.