service and user register and security fix