refactor capitalize module, add into user model as well