added functions to UserSesion class