added badges directory to user model