sign up, login, logout functionalities using sessions