user registration,login and logout implemented