implemented login and lobby