fix bugs for useredit and registration
Merge pull request #109 from Mulyu/fix/editpage

fix bugs for useredit and registration