add register and fix server login with crypt pass