Improved salt method in user model