fixed backend register and login problem