created user authentication and session storage