fix creating user bug for custom host and port