login&register working (client&server)