register, login and logout added