authentication version 1

started implementing registration, login and logout process