picked up the template from the simple login project and rewriting it