Modified method build_user in pets_repo