p.s. delted unnecessary code and also organized register.hbs in last commit