authentication

authentication implemented and tested.