Added gitignore.
Added register success trigger.