factored out login code
hello world app registration script