added following functionality in User model
Merge branch 'master' of https://github.com/rafaeladel/Cribbb