credit management methods added to user model