before implementing a basic authenicate method