Add backend and test login session

made a simple login session for backend