added functionnal signup/autologin system