Feat/auth

Fixed user authentication and session persistence